<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <input id="id" name="id" th:value="${sysBrand.id}" type="hidden">

                        <div class="form-group">
                            <label class="col-sm-3 control-label">品牌名称：</label>
                            <div class="col-sm-8">
                                <input id="brandName" name="brandName" th:value="${sysBrand.brandName}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">品牌类型：</label>
                            <div class="col-sm-8">

                                <input id="typeHidden" name="typeHidden" th:value="${sysBrand.brandType}"
                                       class="form-control"
                                       type="hidden">

                                <select name="brandType" id="brandType" class="form-control">
                                    <option value=""> 请选择</option>
                                    <option value="0"> 幼儿照护</option>
                                    <option value="1"> 产后恢复</option>
                                </select>

                                <!--									<input id="brandType" th:value="${sysBrand.brandType}" class="form-control"-->
                                <!--										   type="hidden">-->
                                <!--									<select id="typeHidden" name="typeHidden" placeholder="请选择品牌类型" class="form-control">-->
                                <!--										<option value="">请选择</option>-->
                                <!--										<option th:each="item : ${list2}"  th:value="${item.name}" th:text="${item.name}"></option>-->
                                <!--									</select>-->
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">地址：</label>
                            <div class="col-sm-8">
                                <input id="workAddress" name="workAddress" th:value="${sysBrand.workAddress}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">详细地址：</label>
                            <div class="col-sm-8">
                                <input id="detailsAddress" name="detailsAddress" th:value="${sysBrand.detailsAddress}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">企业规模：</label>
                            <div class="col-sm-8">
                                <!--									<input id="enterpriseScale" name="enterpriseScale" th:value="${sysBrand.enterpriseScale}" class="form-control" type="text">-->
                                <input id="enterpriseScaleHidden" name="enterpriseScaleHidden"
                                       th:value="${sysBrand.enterpriseScale}" class="form-control"
                                       type="hidden">

                                <!--								<input id="enterpriseScaleHide" name="enterpriseScale" placeholder="请输入企业规模" class="form-control" type="text">-->

                                <select name="enterpriseScale" id="enterpriseScale" class="form-control">
                                    <option> 请选择企业规模</option>
                                    <option value="1"> 0-20人</option>
                                    <option value="2"> 20-50人</option>
                                    <option value="3"> 50-100人</option>
                                    <option value="4"> 100人以上</option>
                                </select>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">企业名称：</label>
                            <div class="col-sm-8">
                                <input id="enterpriseName" name="enterpriseName" th:value="${sysBrand.enterpriseName}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">负责人：</label>
                            <div class="col-sm-8">
                                <input id="personInCharge" name="personInCharge" th:value="${sysBrand.personInCharge}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">联系方式：</label>
                            <div class="col-sm-8">
                                <input id="telephone" name="telephone" th:value="${sysBrand.telephone}"
                                       class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">成立时间：</label>
                            <div class="col-sm-8">
                                <input id="brandTime" name="brandTime" th:value="${sysBrand.brandTime}" class="form-control" type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">品牌介绍：</label>
                            <div class="col-sm-8">
                                <!--								<input id="brandIntroduce" name="brandIntroduce" th:value="${sysBrand.brandIntroduce}" class="form-control" type="text">-->
                                <textarea name="brandIntroduce" th:text="${sysBrand.brandIntroduce}" maxlength="2000"
                                          style="height:300px" class="form-control"
                                          placeholder="品牌介绍(最多输入2000字)"></textarea>

                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">校企合作：</label>

                            <div class="col-sm-8">
                                <input id="brandSchoolEnterprise" name="brandSchoolEnterprise" type="hidden" th:value="${sysBrand.brandSchoolEnterprise}">
                                <div class="ibox-content no-padding">
                                    <div id="brandSchoolEnterprise_sn" class="summernote editor"></div>
                                </div>
                            </div>
<!--                            <div class="col-sm-8">-->

<!--                                <input id="brandSchoolEnterprise" name="brandSchoolEnterprise"-->
<!--                                       th:value="${sysBrand.brandSchoolEnterprise}" class="form-control" type="text">-->
<!--                            </div>-->

                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">品牌特色：</label>

                            <div class="col-sm-8">
                                <input id="brandCharacteristics" name="brandCharacteristics" type="hidden" th:value="${sysBrand.brandCharacteristics}">
                                <div class="ibox-content no-padding">
                                    <div id="content_sn" class="brandCharacteristics editor"></div>
                                </div>
                            </div>

<!--                            <div class="col-sm-8">-->
<!--                                <input id="brandCharacteristics" name="brandCharacteristics"-->
<!--                                       th:value="${sysBrand.brandCharacteristics}" class="form-control" type="text">-->
<!--                            </div>-->
                        </div>
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">品牌照片：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="brandImg" name="brandImg" th:value="${sysBrand.brandImg}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">推荐函：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="recommendFile" name="recommendFile" th:value="${sysBrand.recommendFile}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">营业执照：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="license" name="license" th:value="${sysBrand.license}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">创建时间：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="createTime" name="createTime" th:value="${sysBrand.createTime}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">修改时间：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="updateTime" name="updateTime" th:value="${sysBrand.updateTime}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">0 未审核  1审核通过  2审核未通过：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="status" name="status" th:value="${sysBrand.status}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--&lt;!&ndash;							</div>&ndash;&gt;-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">0正常  1删除/作废：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="state" name="state" th:value="${sysBrand.state}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">用户ID：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="userId" name="userId" th:value="${sysBrand.userId}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">审核人：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="toExamine" name="toExamine" th:value="${sysBrand.toExamine}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->
                        <!--																											<div class="form-group">	-->
                        <!--								<label class="col-sm-3 control-label">审核时间：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--																										<input id="toExamineTime" name="toExamineTime" th:value="${sysBrand.toExamineTime}" class="form-control" type="text">-->
                        <!--																									</div>-->
                        <!--							</div>-->

                        <div class="form-group">
                            <label class="col-sm-3 control-label">品牌图片：</label>
                            <div class="col-sm-8">
                                <!--<input id="certificateImg" name="certificateImg" class="form-control" type="text">-->
                                <!--									<img id="brandImgs" th:src="${sysBrand.brandImg}" src="" style="width:150px;display:block;">-->

                                <div id="brandImgs"></div>
                                <input type="hidden" id="storg" name="brandImg">

                                <input type="hidden" id="brandImg">

                                <input type="hidden" id="brandImgas" th:value="${sysBrand.brandImg}">

                                <button type="button" class="btn btn-success" id="btnAdd" style="margin-top: 10px;">
                                    <i class="fa fa-cloud"></i>上传品牌图片
                                </button>
                            </div>
                        </div>

                        <!--							<div class="form-group">-->
                        <!--								<label class="col-sm-3 control-label">用户寸照：</label>-->
                        <!--								<div class="col-sm-8">-->
                        <!--									<img id="imgs" th:src="${trainCertificate.img}" style="width:150px;display:block;">-->
                        <!--									<input type="hidden" id="img" name="img" th:value="${trainCertificate.img}">-->
                        <!--									<button type="button" class="btn btn-success" id="btnAdd" style="margin-top: 10px;">-->
                        <!--										<i class="fa fa-cloud"></i>上传用户寸照-->
                        <!--									</button>-->
                        <!--								</div>-->
                        <!--							</div>-->

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
<!--                                <button type="submit" class="btn btn-primary">提交</button>-->
                                <button type="layui-btn" onclick="update()" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/sysBrand/edit.js">
</script>

<script>
    function invoking(){
        var brand = $("#brandImgas").val().split(','), str = '',srr = '';

        brand = brand.filter(item => {
            return item.length > 0
        });
        brand.map(function (item, index) {
            str += `<img style="width: 150px; height:150px;" class="form-control" src="${item}" type="text">`
            srr += item+',';
        })

        $("#brandImgs").html(str);
        $("#storg").val(srr);


        $("#brandSchoolEnterprise_sn").html($("#brandSchoolEnterprise").val())
        $("#content_sn").html($("#brandCharacteristics").val())


    }

    invoking();

</script>

</body>
</html>

<style>
    #brandImgs{
        display: table;
        width: 100%;
    }
    .closeBtn{
        position: relative;
        cursor:pointer;
        width:150px;height:150px;
        margin-right: 15px;margin-bottom: 15px;
        float: left;
    }

    .closeBtn .upImg{
        width:100%;height:100%;display:block;border-radius: 5px;

    }

    .closeBtn .iconclose{
        position: absolute;
        top: 5px;
        right: 5px;
        width: 16px;
        height: 16px;
    }
    .closeBtn .iconclose img{
        width: 100%;
        height: 100%;
    }

</style>
